﻿#ifndef ENUMERATIONCOMBINATIONTEST_H
#define ENUMERATIONCOMBINATIONTEST_H
#include <iostream>

typedef enum _Week{
    Monday = 1,
    Tuesday = 2,
    Wednesday = 4,
    Thursday = 8,
    Friday = 16,
    Saturday = 32,
    Sunday=64,
    GoodDay = Monday|Wednesday|Friday,

}Week;

void printWeek(int src)
{
    std::string strLog;
    if ((src&Monday) == Monday)
       strLog.append("Monday ");
    if ((src&Tuesday) == Tuesday)
        strLog.append("Tuesday ");
    if ((src&Wednesday) == Wednesday)
        strLog.append("Wednesday ");
    if ((src&Thursday) == Thursday)
        strLog.append("Thursday ");
    if ((src&Friday) == Friday)
        strLog.append("Friday ");
    if ((src&Saturday) == Saturday)
        strLog.append("Saturday ");
    if ((src&Sunday) == Sunday)
        strLog.append("Sunday ");
    std::cout<<"tc test case 001 : "<<strLog<<std::endl;
}

#endif // ENUMERATIONCOMBINATIONTEST_H
